package com.baidumap.administrator.happystudy.ui;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.baidumap.administrator.happystudy.R;
import com.baidumap.administrator.happystudy.base.AppBaseActivity;
import com.baidumap.administrator.happystudy.base.Constant;

import butterknife.Bind;
import butterknife.OnClick;


public class CurriculumScheduleActivity extends AppBaseActivity {

    @Bind(R.id.goback)
    LinearLayout goback;
    @Bind(R.id.login)
    TextView login;


    @Override
    public int bindLayout() {
        return R.layout.activity_curriculum_schedule;
    }

    @Override
    public void initView(View view) {
        super.initView(view);
    }

    @Override
    public void doBusiness(Context mContext) {
        super.doBusiness(mContext);
        setHeaderBack();
        setHeaderTitle(R.string.ke_cheng_biao);
        if (sHelper.getBoolean(Constant.STU_IS_LOGIN)) {
            startActivity(CurriculumSchedule1Activity.class);
            finish();
        }
    }

    @OnClick({R.id.goback, R.id.login})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.goback:
                finish();
                break;
            case R.id.login:
                startActivity(new Intent(CurriculumScheduleActivity.this, CurriculumScheduleLoginActivity.class));
                break;
        }
    }
}
